package com.top.art.service.impl;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.top.art.entity.ExamineeInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: huangyixin
 * @create: 2020/10/11 22:46
 **/
public class ExamineeExcelReadListener extends AnalysisEventListener<ExamineeInfo> {

    private List<ExamineeInfo> datas = new ArrayList<>();

    @Override
    public void invoke(ExamineeInfo examineeInfo, AnalysisContext analysisContext) {
        datas.add(examineeInfo);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public List<ExamineeInfo> getDatas() {
        return datas;
    }
}
